package com.huatech.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

@RestController
public class IndexController {

	@RequestMapping(value="/hello")
	public String hello(String name){
		return name + ", hello!";
	}
	
	
	@RequestMapping(value="/index")
	public ModelAndView index(){
		return new ModelAndView("/index");
	}
}
